package entidates;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author Overpower
 */
public class Curso implements IEntidad, Cloneable{
    private Integer _idPersona;
    private Integer _idMateria;

    @Override
    public Integer GetID() {
        return -1;
    }

    @Override
    public void SetID(Integer id) {
        
    }

    public Integer GetIdPersona() {
        return _idPersona;
    }

    public void SetIdPersona(Integer _idPersona) {
        this._idPersona = _idPersona;
    }

    public Integer GetIdMateria() {
        return _idMateria;
    }

    public void SetIdMateria(Integer _idMateria) {
        this._idMateria = _idMateria;
    }

    @Override
    public void Copiar(IEntidad entidad) {
        Curso _c = (Curso)entidad;
        _idPersona = _c._idPersona;
        _idMateria = _c._idMateria;
    }

    @Override
    public IEntidad Clonar() {
        Curso _clon = null;
        try
        {
            _clon = (Curso) super.clone();
        }
        catch(CloneNotSupportedException e )
        {
            
        }
        return _clon;
    }
}
